package com.atech.ebayadmin.amount.dao.impl;

import com.atech.ebayadmin.amount.dao.IAmountDAO;
import com.atech.ebayadmin.amount.model.Amount;
import com.atech.ebayadmin.common.util.BaseDAOHibernate;

public class AmountDAO extends BaseDAOHibernate implements IAmountDAO {
	private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(AmountDAO.class);
	@Override
	protected Class getObjClass() {
		return Amount.class;
	}

	public Amount getAmount(Integer id) throws Exception {
		Amount po = (Amount)super.getHibernateTemplate().get(getObjClass(), id);
		return po;
	}
	public Integer saveAmount(Amount po) throws Exception{
    	Object key = super.getHibernateTemplate().save(po);
    	return (Integer)key;
    }
    public void deleteAmount(Amount po) throws Exception{
    	super.deleteObject(po);
    }
    public void updateAmount(Amount po) throws Exception{
    	super.updateObject(po);
    }
}
